home *** CD-ROM | disk | FTP | other *** search
/ The World's Largest Collection of Windows Software / The World's Largest Collection of Windows Software - Disc 1.iso / connect / _j2 / wsmtpd16 / mailx.bat < prev    next >
DOS Batch File  |  1993-07-02  |  555b  |  24 lines

  1. @echo off
  2. rem
  3. rem You should replace "c:\mail\iblenke" with the mailbox name you have
  4. rem set up for PCTCP's mail program. (hint: check PCTCP.INI)
  5. rem
  6. set pctcpmail=c:\mail\iblenke
  7. rem
  8. rem You should replace "c:\mail\mail.txt" with the mailbox name you have
  9. rem set in WSMTPD's dialog box.
  10. rem
  11. set mailbox=c:\mail\mail.txt
  12. rem
  13. if not exist %mailbox% goto no_mail
  14. copy %mailbox% %pctcpmail% > NUL:
  15. mail -f %pctcpmail%
  16. echo Remember to DELMAIL if you read it all, and nothing new came.
  17. goto done
  18.  
  19. :no_mail
  20. echo Mailbox empty.
  21.  
  22. :done
  23.  
  24.